package reflect;

import java.util.Arrays;

/**
 * Created by IntelliJ IDEA.
 * User: liuliwei
 * Date: 2017-12-06
 * Time: 下午6:09
 * Description: ${description}
 */
public class Father {
    public void a() {

    }

    protected void b() {

    }

    void c() {

    }

    private void d() {

    }

    public static void main(String[] args) {
        Arrays.stream(Father.class.getMethods()).forEach((a)-> System.out.println(a.getName()));
        System.out.println("===========");
        Arrays.stream(Father.class.getDeclaredMethods()).forEach((a)-> System.out.println(a.getName()));
    }
}
